// vite.config.js
import {
  defineConfig
} from "file:///F:/%E5%B7%A5%E4%BD%9C/windowsApp/zt-win-terminal/node_modules/.pnpm/vite@5.0.11_less@4.2.0_sass@1.69.7/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/%E5%B7%A5%E4%BD%9C/windowsApp/zt-win-terminal/node_modules/.pnpm/@vitejs+plugin-vue@4.6.2_vite@5.0.11_vue@3.4.5/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import copy from "file:///F:/%E5%B7%A5%E4%BD%9C/windowsApp/zt-win-terminal/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.commonjs.js";
import svgLoader from "file:///F:/%E5%B7%A5%E4%BD%9C/windowsApp/zt-win-terminal/node_modules/.pnpm/vite-svg-loader@5.1.0_vue@3.4.5/node_modules/vite-svg-loader/index.js";
import viteCompression from "file:///F:/%E5%B7%A5%E4%BD%9C/windowsApp/zt-win-terminal/node_modules/.pnpm/vite-plugin-compression@0.5.1_vite@5.0.11/node_modules/vite-plugin-compression/dist/index.mjs";
import cesium from "file:///F:/%E5%B7%A5%E4%BD%9C/windowsApp/zt-win-terminal/node_modules/.pnpm/vite-plugin-cesium@1.2.22_cesium@1.113.0_rollup@2.79.1_vite@5.0.11/node_modules/vite-plugin-cesium/dist/index.mjs";
var vite_config_default = defineConfig(async () => ({
  define: {
    "process.env.NODE_ENV": JSON.stringify("production")
  },
  plugins: [vue(), svgLoader(), cesium()],
  // 项目根目录
  root: process.cwd(),
  // 在生产中服务时的基本公共路径
  base: "/",
  // 配置中指明将会把 serve 和 build 时的模式都覆盖掉,serve 时默认 'development'，build 时默认 'production'
  mode: "development",
  // 在开发时会被定义为全局变量，而在构建时则是静态替换
  //define: '',
  // 静态资源服务的文件夹
  publicDir: "assets",
  publicPath: "/",
  //存储缓存文件的目录
  cacheDir: "node_modules/.vite",
  // define: {
  //   'process.env': process.env
  // },
  resolve: {
    // 目录别名
    alias: {
      //'@': path.resolve(__dirname, '/src'),
      "@": path.resolve("src")
    }
  },
  build: {
    // 包含额外文件类型
    assetsInclude: ["**/*.json"],
    outDir: "dist",
    assetsDir: "assets",
    plugins: [
      copy({
        targets: [{
          src: "public/*.json",
          dest: "dist"
        }],
        hook: "writeBundle"
        // 在打包结束后执行复制
      })
    ]
  },
  // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
  //
  // 1. prevent vite from obscuring rust errors
  clearScreen: false,
  // 2. tauri expects a fixed port, fail if that port is not available
  server: {
    port: 1420,
    strictPort: true,
    watch: {
      // 3. tell vite to ignore watching `src-tauri`
      ignored: ["**/src-tauri/**"]
    },
    proxy: {
      // 当请求路径以 /api 开头时，转发到目标服务器
      "/api": {
        target: "https://zhangteng.cloud/5001",
        changeOrigin: true
        // 需要虚拟主机站点
        //rewrite: path => path.replace(/^\/api/, '') // 重写请求路径
      },
      "/gpt": {
        target: "https://api.132999.xyz/",
        changeOrigin: true
        // 需要虚拟主机站点
        //rewrite: path => path.replace(/^\/api/, '') // 重写请求路径
      },
      "/doc": {
        target: "http:/119.45.240.39:4000/",
        changeOrigin: true
        // 需要虚拟主机站点
        //rewrite: path => path.replace(/^\/api/, '') // 重写请求路径
      }
    }
  }
}));
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJGOlxcXFxcdTVERTVcdTRGNUNcXFxcd2luZG93c0FwcFxcXFx6dC13aW4tdGVybWluYWxcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkY6XFxcXFx1NURFNVx1NEY1Q1xcXFx3aW5kb3dzQXBwXFxcXHp0LXdpbi10ZXJtaW5hbFxcXFx2aXRlLmNvbmZpZy5qc1w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